Conversation
# Conflicts: # BootstrapBlazor.Extensions.sln # src/extensions/BootstrapBlazor.OpcDa/BootstrapBlazor.OpcDa.csproj # test/UnitTestOpcUa/UnitTestOpcUa.csproj
Reviewer's GuideIntroduces a multi-target OPC UA client extension with scoped DI registration, asynchronous session/read/write/browse APIs, configurable security and identities, monitored subscriptions, serialized lifecycle management, deterministic cleanup, and isolated automated coverage; the package is relocated to extensions and versioned 10.0.1. Sequence diagram for OPC UA connection and operationssequenceDiagram
participant Consumer
participant IOpcUaServer
participant OpcUaServer
participant OpcUaSdk
Consumer->>IOpcUaServer: ConnectAsync(endpointUrl, options, cancellationToken)
IOpcUaServer->>OpcUaServer: ConnectAsync(endpointUrl, options, cancellationToken)
OpcUaServer->>OpcUaSdk: SelectEndpointAsync(...)
OpcUaServer->>OpcUaSdk: CreateAsync(...)
OpcUaSdk-->>OpcUaServer: Connected session
OpcUaServer-->>Consumer: true
Consumer->>IOpcUaServer: ReadAsync(nodeIds, cancellationToken)
IOpcUaServer->>OpcUaServer: ReadAsync(nodeIds, cancellationToken)
OpcUaServer->>OpcUaSdk: ReadAsync(...)
OpcUaSdk-->>OpcUaServer: Read results
OpcUaServer-->>Consumer: IReadOnlyList<OpcUaReadItem>
Consumer->>IOpcUaServer: WriteAsync(items, cancellationToken)
IOpcUaServer->>OpcUaServer: WriteAsync(items, cancellationToken)
OpcUaServer->>OpcUaSdk: WriteAsync(...)
OpcUaSdk-->>OpcUaServer: Status codes
OpcUaServer-->>Consumer: IReadOnlyList<OpcUaWriteItem>
Sequence diagram for monitored OPC UA subscriptionsequenceDiagram
participant Consumer
participant IOpcUaServer
participant OpcUaServer
participant IOpcUaSubscription
participant OpcUaSdk
Consumer->>IOpcUaServer: CreateSubscriptionAsync(name, publishingInterval, active, cancellationToken)
IOpcUaServer->>OpcUaServer: CreateSubscriptionAsync(name, publishingInterval, active, cancellationToken)
OpcUaServer->>OpcUaSdk: CreateAsync(cancellationToken)
OpcUaSdk-->>OpcUaServer: Created subscription
OpcUaServer-->>Consumer: IOpcUaSubscription
Consumer->>IOpcUaSubscription: AddItemsAsync(nodeIds, samplingInterval, cancellationToken)
IOpcUaSubscription->>OpcUaSdk: ApplyChangesAsync(cancellationToken)
OpcUaSdk-->>IOpcUaSubscription: Monitored items active
OpcUaSdk-->>IOpcUaSubscription: Notification
IOpcUaSubscription->>IOpcUaSubscription: DataChanged(results)
IOpcUaSubscription-->>Consumer: Action<IReadOnlyList<OpcUaReadItem>>
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link issues
fixes #1117
Summary By Copilot
IOpcUaServerRegression?
Risk
This introduces a new stateful network client and certificate configuration surface. The implementation uses scoped ownership, explicit cancellation, serialized session operations, and deterministic cleanup to limit lifecycle risk.
Verification
dotnet test test\UnitTestOpcUa\UnitTestOpcUa.csproj -f net10.0 --no-restore --nologo --verbosity:minimalpassed all 5 tests.Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Implement a production-ready OPC UA client extension with configurable connectivity, data access, browsing, and monitored subscriptions.
New Features:
Enhancements:
Build:
Tests: